/*
 * @Author: your name
 * @Date: 2021-04-28 08:52:59
 * @LastEditTime: 2021-04-28 10:45:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \js_study\demo05\js\index.js
 */


((doc)=>{

    function Test(){
        this.a = 1;
        this.b = 2;
    }

    Test.prototype ={
        geta: function(){
            return "获取a:" + this.a
        }
    }

    Test.getb = function(){
        return "获取b:" + this.b;
    }

    const per = new Test();
    console.log(per.geta())
    console.log(per.getb())
})(document);